package a.j;

import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.awt.geom.Point2D;

class sb
  implements MouseWheelListener
{
  qg a;
  
  public sb(qg paramqg)
  {
    this.a = paramqg;
    paramqg.B().addMouseWheelListener(this);
  }
  
  public void mouseWheelMoved(MouseWheelEvent paramMouseWheelEvent)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    pg localpg1 = this.a.F;
    Object localObject = paramMouseWheelEvent.getSource();
    if ((bool2) || ((localObject instanceof og)))
    {
      og localog = (og)localObject;
      pg localpg2 = (pg)localog.getParent();
      if (Boolean.TRUE.equals(localpg2.getClientProperty("Overview.AllowZooming")))
      {
        double d1 = localog.c(paramMouseWheelEvent.getX());
        double d2 = localog.d(paramMouseWheelEvent.getY());
        double d3 = localpg1.M();
        int i = 0;
        if (!bool2) {
          if (paramMouseWheelEvent.getScrollType() == 1)
          {
            i = paramMouseWheelEvent.getWheelRotation();
            if (bool2) {
              break label149;
            }
            if (!bool1) {
              break label147;
            }
          }
        }
        if (!bool2) {
          if (paramMouseWheelEvent.getScrollType() == 0) {
            i = paramMouseWheelEvent.getUnitsToScroll();
          }
        }
        label147:
        if (i != 0)
        {
          label149:
          Point2D localPoint2D = localpg1.J();
          if (!bool2)
          {
            if (i > 0)
            {
              if (bool2) {
                break label195;
              }
              localpg1.b(d3 / 1.25D);
            }
          }
          else {
            if (!bool1) {
              break label198;
            }
          }
          label195:
          localpg1.b(d3 * 1.25D);
          label198:
          double d4 = localog.c(paramMouseWheelEvent.getX());
          double d5 = localog.d(paramMouseWheelEvent.getY());
          d1 = localPoint2D.getX() + d1 - d4;
          d2 = localPoint2D.getY() + d2 - d5;
          localpg1.a(d1, d2);
          this.a.a(localpg1);
          localpg1.b();
        }
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.sb

 * JD-Core Version:    0.7.0.1

 */